// common
require("../scss/admin_home.scss")
import {Provider} from "react-redux"
const createStoreWithMiddleware = require("./common/common").createStoreWithMiddleware
import AdminHeader from "./components/admin/AdminHeader/AdminHeader.jsx"
import AdminSidebar from "./components/admin/AdminSidebar/AdminSidebar.jsx"

ReactDOM.render(
    <AdminHeader/>,
    document.getElementById("AdminHeader")
)

ReactDOM.render(
    <AdminSidebar/>,
    document.getElementById("AdminSidebar")
)

// 管理员论坛管理
require("../scss/admin_forum.scss")
import {AdminForumCtrlContainer} from "./containers/admin/AdminForumCtrlContainer.jsx"
import adminForumCtrlApp from "./reducers/admin/admin_forum_reducers"

let store = createStoreWithMiddleware(adminForumCtrlApp)

ReactDOM.render(
    <Provider store={store}>
        <AdminForumCtrlContainer />
    </Provider>,
    document.getElementById("AdminForumCtrl")
)